package com.dapeng.cleardatabackend.model.dto.user;

import com.dapeng.cleardatabackend.model.enums.UserGenderEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Email;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.util.List;

/**
 * @author dapeng
 * @description 更新用户请求
 * @date 2024/12/5 11:44
 */
@Data
@ApiModel(description = "更新用户请求")
public class UserUpdateMyRequest implements Serializable {

    private static final long serialVersionUID = -378539961054497255L;

    /**
     * 账号
     */
    @ApiModelProperty(value = "账号")
    @Size(min = 4, max = 20, message = "用户账号长度需要在4-20位之间")
    private String userAccount;

    /**
     * 微信开放平台id
     */
    @ApiModelProperty(value = "微信开放平台id")
    private String unionId;

    /**
     * 公众号openId
     */
    @ApiModelProperty(value = "公众号openId")
    private String mpOpenId;

    /**
     * 用户昵称
     */
    @ApiModelProperty(value = "用户昵称")
    @Size(min = 4, max = 20, message = "用户名长度需要在4-20位之间")
    private String username;

    /**
     * 电话
     */
    @ApiModelProperty(value = "电话")
    private String phone;

    /**
     * 邮箱
     */
    @ApiModelProperty(value = "邮箱")
    @Email(message = "邮箱格式不正确")
    private String email;

    /**
     * 用户头像
     */
    @ApiModelProperty(value = "用户头像")
    private String userAvatar;

    /**
     * 用户简介
     */
    @ApiModelProperty(value = "用户简介")
    private String userProfile;

    /**
     * 性别 0-男 1-女 2-保密
     */
    @ApiModelProperty(value = "性别 0-男 1-女 2-保密", dataType = "java.lang.Integer")
    private UserGenderEnum gender;

}
